package com.example.springb2;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@ResponseBody
@RequestMapping("user")
public class UserController {
    @RequestMapping("/sayhi")// 设置路由地址：注意必须全小写！
    public String sayHi(){
        return "hello world!";
    }
}
